package cn.com.zhuxulin.android.demos.bussiness;

import android.R.integer;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;

public class SPreference {
	private SharedPreferences sharedPreferences = null;
	private Editor editor = null;
	private Context context = null;

	public SPreference(Context context) {
		this.context = context;
	}

	/**
	 * @param xmlFileName
	 *            The file name of XML,this will create a xml file in system.
	 * @param mode
	 *            Context.MODE_APPEND:Append in the end
	 *            Context.MODE_PRIVATE:Private Shared
	 *            Context.MODE_WORLD_READABLE:Everyone can read
	 *            Context.MODE_WORLD_WRITEABLE:Everyone can write and read
	 */
	public SharedPreferences getSharedPreferences(String xmlFileName, int mode) {
		return this.context.getSharedPreferences(xmlFileName, mode);
	}
//	public Editor getEditor(){
//		return this.editor;
//	}
}
